Add hide_api_docs config option to hide API documentation on the web UI#51
Open
SaschaWeller wants to merge 4 commits intosameerdhoot:mainfrom
Open
Add hide_api_docs config option to hide API documentation on the web UI#51SaschaWeller wants to merge 4 commits intosameerdhoot:mainfrom
SaschaWeller wants to merge 4 commits intosameerdhoot:mainfrom
Conversation
…bsite Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hide_api_docsboolean config option (default:false) that hides the API documentation section on the web UI when set totrueWOLWEBHIDEAPIDOCSfor consistency with all other config optionsARGand runtimeENVto both Dockerfiles (Alpine and Debian) and as a commented-out entry indocker-compose.ymlChanged files
types.goHideAPIDocsfield onAppConfigwith JSON tag and env varpages.goHideAPIDocsinto the HTML template dataindex.html{{ if not .HideAPIDocs }}DockerfileARG/ENVforWOLWEBHIDEAPIDOCSDebian_DockerfileARG/ENVforWOLWEBHIDEAPIDOCSdocker-compose.ymlWOLWEBHIDEAPIDOCSenv var entryREADME.mdTest plan
"hide_api_docs": false(default) — API docs section visible as before"hide_api_docs": true— API docs section and related JS are not renderedWOLWEBHIDEAPIDOCS=trueenvironment variable — same result, env var takes precedence over config file